package com.payge.firework.model

import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color

// 粒子数据类，存储粒子的物理属性
data class Particle(
    var x: Float,
    var y: Float,
    var velocityX: Float,
    var velocityY: Float,
    var radius: Float,
    var color: Color,
    var life: Float,
    var maxLife: Float,
    var rotation: Float,
    var rotationSpeed: Float
)

// 花炮数据类
data class Firecracker(
    val id: Int,
    var x: Float,
    var y: Float,
    val targetY: Float, // 目标高度，到达后自动爆炸
    var isExploding: Boolean = false,
    var isFinished: Boolean = false,
    val color: Color,
    var trail: List<Offset> = emptyList() // 花炮尾迹
)
